package com.gxa.service.community;



import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.gxa.dto.communitydto.HouseNameDto;
import com.gxa.dto.communitydto.OwnerDto;
import com.gxa.dto.communitydto.OwnerHouseDto;
import com.gxa.dto.communitydto.OwnerSearchDto;
import com.gxa.entity.community.Community;
import com.gxa.entity.community.Owner;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yjl
 * @since 2022-10-11 10:05:39
 */
public interface OwnerService extends IService<Owner> {

    //查询全部
    PageInfo<OwnerDto> queryAll(OwnerSearchDto ownerSearchDto, Integer pageNum, Integer pageSize);

    //通过业主的编码查寻所在房屋情况
    List<OwnerHouseDto> queryByOwnerNum(String ownerNum);
    //通过id查一条数据
    OwnerDto queryById(Integer id);
    //删除
    void delete(Integer id);
    //增加业主表信息
    void add(Owner owner);
    //通过业主表对的信息添加业主房屋关系表
    void addOhRelation(Owner owner);
    //更新
    void update(Owner owner);

    //查询所有房屋
    List<HouseNameDto> queryHouseName();

    //判断编码是否重复
    List<Owner> queryByNum(String ownerNum);
}
